package com.appkubes.mall.core.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 用户优惠券
 * @author Rongjie
 */
@Data
@TableName("mall_user_coupon")
@KeySequence(value = "mall_user_coupon_SEQ")
@ApiModel(value = "MallUserCoupon对象")
public class MallUserCoupon implements Serializable{

       private String appKey;

       @TableId(value = "usercoupon_key", type = IdType.UUID)
       private String usercouponKey;

       private String userKey;

       @ApiModelProperty(value = "优惠券id")
       private String couponKey;

       @ApiModelProperty(value = "领取时间", example = "1")
       private Integer createTime;

       @ApiModelProperty(value = "过期时间", example = "1")
       private Integer endTime;

       @ApiModelProperty(value = "1未使用，2已使用", example = "1")
       private Integer state;

       @ApiModelProperty(value = "使用时间", example = "1")
       private Integer useTime;

       @ApiModelProperty(value = "优惠券名称")
       private String name;

       @ApiModelProperty(value = "使用说明")
       private String info;

       @ApiModelProperty(value = "满减金额")
       private BigDecimal money;

       @ApiModelProperty(value = "单笔满多少金额")
       private BigDecimal useMoney;

       private Integer updateTime;

       @ApiModelProperty(value = "开始时间", example = "1")
       private Integer beginTime;

       @ApiModelProperty(value = "单品可以的优惠券的商品id")
       private String goodsKey;

       @ApiModelProperty(value = "版本号", example = "1")
       @Version
       private Integer version;

}
